package com.gosun.mapper;

import com.gosun.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {
    User selectUserByName(String username);//通过名字选择
    void insertUser(User user);//插入新用户
    void deleteUser(int id);//删除用户
    User selectAllUser();//查询所有用户
    void updateUser(User user);//更新用户信息
    User selectUserById(int id);//通过id选择
}
